#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    //全局样式和局部样式会叠加一起,如果样式冲突时局部优先级更高
    ui->pushButton->setStyleSheet("QPushButton{font-size:50px;}");
}

MainWindow::~MainWindow()
{
    delete ui;
}

